import type { Metadata } from 'next';
import { AntdRegistry } from '@ant-design/nextjs-registry';

import localFont from 'next/font/local';
import './globals.css';

const geistSans = localFont({
	src: './fonts/GeistVF.woff',
	variable: '--font-geist-sans',
	weight: '100 900',
});
const geistMono = localFont({
	src: './fonts/GeistMonoVF.woff',
	variable: '--font-geist-mono',
	weight: '100 900',
});

export const metadata: Metadata = {
	title: '个人作品展示',
	description: '这是一个作品的展示',
};

export default function RootLayout({
	children,
}: Readonly<{
	children: React.ReactNode;
}>) {
	return (
		<html lang="zh-cn">
			<body
				className={`${geistSans.variable} ${geistMono.variable} antialiased`}
			>
				<div className="app">
					<AntdRegistry> {children} </AntdRegistry>
				</div>
			</body>
		</html>
	);
}
